package com.aaa.book_mall.entity;
import java.io.Serializable;
import org.springframework.stereotype.Component;

/**
 * @Description: 书本类型实体
 * @ClassName: Type
 * @Author: fengyun
 * @Date: 2021/1/19 21:21
 * @Version: 1.0
 */
@Component
public class Type implements Serializable{
    private Integer typeid;
    private String typename;
    private Integer limit;
    private Integer page;

    public Type() {
    }

    public Type(Integer typeid, String typename) {
        this.typeid = typeid;
        this.typename = typename;
    }
    public Type(Integer typeid, String typename, Integer limit, Integer page) {
        this.typeid = typeid;
        this.typename = typename;
        this.limit = limit;
        this.page = page;
    }

    public Integer getTypeid() {
        return typeid;
    }

    public void setTypeid(Integer typeid) {
        this.typeid = typeid;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    @Override
    public String toString() {
        return "Type{" +
                "typeid=" + typeid +
                ", typename='" + typename + '\'' +
                ", limit=" + limit +
                ", page=" + page +
                '}';
    }
}
